import {seckList } from '../request/api'
const state = {
    secklist:[]
}
const getters = {
    getSeck(state) {
        return state.secklist
    }
}
const mutations = {
    REQ_SECKLIST(state, payload) {
        state.secklist = payload
    }
}
const actions = {
    getSeckAction({ commit }) {
        seckList().then(res => {
            commit('REQ_SECKLIST',res.list)
        })
    }
}
export default {
    state,
    getters,
    mutations,
    actions,
    namespaced:true
}